package router

import (
	"api/handler"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	api := r.Group("/api")
	{
		shop := api.Group("/shop")
		{

			shop.GET("/list", handler.ListShop)
			shop.POST("/upload", handler.Upload)
			shop.GET("/info", handler.Info)
			shop.POST("/login", handler.Login)
		}
	}
}
